import { _decorator, Component, EditBox, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('LoginNodeManager')
export class LoginNodeManager extends Component {
    @property({type: Node, tooltip: "EditBoxUserName"})
    private EditBoxUserName: Node = null;

    protected onEnable(): void {
        const email = localStorage.getItem("lastLoginEmail");
        if (email != null) {
            this.EditBoxUserName.getComponent(EditBox).string = email;
        }
    }
    start() {

    }

    update(deltaTime: number) {
        
    }
}


